package exam.file.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import exam.domian.base.BaseBean;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Xiongx
 * @version 1.0
 * @date 2021/4/9 21:36
 * @since JDK 1.8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("demo_file")
@Builder
public class UFile extends BaseBean implements Serializable {

    @TableId(value = "id",type = IdType.ASSIGN_UUID)
    @ApiModelProperty("文件id")
    private String id;

    @TableField("filename")
    @ApiModelProperty("文件名")
    private String filename;

    @TableField("size")
    @ApiModelProperty("文件大小")
    private Double size;

    @TableField("sizetype")
    @ApiModelProperty("大小类型")
    private String sizeType;

    @TableField("path")
    @ApiModelProperty("文件路径")
    private String path;

    @TableField("realname")
    @ApiModelProperty("原文件名")
    private String realFileName;

    @TableField("filetype")
    @ApiModelProperty("文件类型")
    private String fileType;

    @Override
    public Date getCreateTime() {
        return super.getCreateTime();
    }
}
